package com.nbsaas.boot.agent.rest.convert;

import com.nbsaas.boot.entity.agent.AgentModelProvider;
import com.nbsaas.boot.agent.api.domain.request.AgentModelProviderRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 请求对象转换成实体对象
*/

public class AgentModelProviderEntityConvert  implements Converter<AgentModelProvider, AgentModelProviderRequest> {

    @Override
    public AgentModelProvider convert(AgentModelProviderRequest source) {
        AgentModelProvider result = new AgentModelProvider();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

